import os
import yaml
from yaml import SafeLoader

from datareport.impl.Application import Application
# 获取当前脚本所在目录
cur_dir = os.path.dirname(os.path.realpath(__file__))
# 拼接 YAML 文件路径
config_file = os.path.join(cur_dir, 'config.yaml')

with open(config_file, encoding='utf-8') as f:
    context = yaml.load(f, Loader=SafeLoader)

Application().run(context)



